examples: Add deprecation guards
authorBenjamin Otte <otte@redhat.com>
Sun, 12 Oct 2014 03:51:11 +0000 (05:51 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 12 Oct 2014 03:51:11 +0000 (05:51 +0200)
Apparently it's not possible in GtkTextView to say "this style should
apply to all text, including newly inserted text. Or I'm just too stupid
to use its API.

So instead, keep using override_color().

examples/plugman.c

index 3a4b7b3d0ce9434eb88ed7b0652fb8d3bf37ed40..e9c052a9eb08ca287baceefbe30ca42ab4cd9af6 100644 (file)
@@ -208,7 +208,9 @@ plugin_action (GAction  *action,
 
   gdk_rgba_parse (&color, g_action_get_name (action));
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gtk_widget_override_color (text, 0, &color);
+G_GNUC_END_IGNORE_DEPRECATIONS
 }
 
 static void